package edu.ahpu.propertymanage.util;

import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;
import java.util.Map;

@Component
public class ExcelTitleMap {

    public LinkedHashMap getOwnerTitle() {
        //业主模板
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("ownerId", "业主id");
        titleMap.put("ownerName", "业主姓名");
        titleMap.put("ownerPhone", "业主电话");
        titleMap.put("ownerHome", "住房面积");
        titleMap.put("ownerArea", "区");
        titleMap.put("ownerDong", "栋");
        titleMap.put("ownerUnit", "单元");
        titleMap.put("ownerRoom", "室");
        return titleMap;
    }

    public LinkedHashMap getManagersTitle() {
        //管理员模板
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("managerId", "管理员id");
        titleMap.put("managerName", "管理员姓名");
        titleMap.put("managerPhone", "管理员电话");
        titleMap.put("managerPow", "管理员权限");
        return titleMap;
    }

    public LinkedHashMap getWorkerTitle() {
        //工人模板
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("workerId", "工人id");
        titleMap.put("workerName", "工人姓名");
        titleMap.put("workerPhone", "工人电话");
        titleMap.put("workerDepartment", "工人部门");
        titleMap.put("workerSex", "工人性别");
        titleMap.put("workerAge", "工人年龄");
        titleMap.put("workerStar", "工人星级");
        return titleMap;
    }

    public LinkedHashMap getVisitorTitle() {
        //工人模板
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("visitorId", "访客id");
        titleMap.put("visitorName", "访客姓名");
        titleMap.put("visitorPhone", "访客电话");
        titleMap.put("visitorCar", "访客车牌号");
        titleMap.put("visitorArrTime", "到访时间");
        return titleMap;
    }

    public LinkedHashMap getWaterCost() {
        //水费
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("waterFId","水费ID");
        titleMap.put("ownerId","业主ID");
        titleMap.put("lastMonthWaterTime","上次抄表时间");
        titleMap.put("lastMonthWaterCount","上次抄表数");
        titleMap.put("thisMonthWaterTime","本次抄表时间");
        titleMap.put("thisMonthWaterCount","本次抄表数");
        titleMap.put("userWaterCount","本月用户数");
        return titleMap;
    }

    public LinkedHashMap getEleCost() {
        //电费
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("eleFId","电费ID");
        titleMap.put("ownerId","业主ID");
        titleMap.put("lastMonthEleTime","上次抄表时间");
        titleMap.put("lastMonthEleCount","上次抄表数");
        titleMap.put("thisMonthEleTime","本次抄表时间");
        titleMap.put("thisMonthEleCount","本次抄表数");
        titleMap.put("useEleCount","本月用户数");
        return titleMap;
    }

    public LinkedHashMap getGasCost() {
        //燃气费
        LinkedHashMap<String, String> titleMap = new LinkedHashMap<>();
        titleMap.put("gasFId","燃气费ID");
        titleMap.put("ownerId","业主ID");
        titleMap.put("lastMonthGasTime","上次抄表时间");
        titleMap.put("lastMonthGasCount","上次抄表数");
        titleMap.put("thisMonthGasTime","本次抄表时间");
        titleMap.put("thisMonthGasCount","本次抄表数");
        titleMap.put("useGasCount","本月用户数");
        return titleMap;
    }
}
